Skip to content

perf: Avoid freshening the same predicate twice per selection - #78

Closed
xmakro wants to merge 1 commit into
perf/base-0713from
perf/selection-single-freshen
Closed

perf: Avoid freshening the same predicate twice per selection#78
xmakro wants to merge 1 commit into
perf/base-0713from
perf/selection-single-freshen

Conversation

@xmakro

@xmakro xmakro commented Jul 31, 2026

Copy link
Copy Markdown
Owner

candidate_from_obligation freshens a predicate that push_stack already freshened. The two results can only differ if the predicate contains type or const inference variables. If it has none, we reuse stack.fresh_trait_pred and skip the second freshening.

@xmakro xmakro changed the title perf: Avoid freshening the same predicate twice per selection perf: Avoid freshening the same predicate twice per selection [-0.21%] Aug 1, 2026
@xmakro
xmakro force-pushed the perf/selection-single-freshen branch from da23f94 to cb30f85 Compare August 1, 2026 07:49
@xmakro
xmakro force-pushed the perf/selection-single-freshen branch from cb30f85 to 9ecbf59 Compare August 4, 2026 05:50
@xmakro xmakro changed the title perf: Avoid freshening the same predicate twice per selection [-0.21%] perf: Avoid freshening the same predicate twice per selection Aug 4, 2026
@xmakro xmakro closed this Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant